﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sdepci.InfoCode.Web.Interface
{
    public partial class InfoCodeCallback : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.Response.Clear();
                if (Session["InfoCode"] != null && Session["InfoDesc"] != null && Session["SerialReference"] != null && Session["SerialNumber"] != null)
                {
                    this.Response.Write(Session["InfoCode"].ToString() + "{|}" + Session["InfoDesc"].ToString() + "{|}" + Session["SerialReference"].ToString() + "{|}" + Session["SerialNumber"].ToString());
                }
                else
                {
                    this.Response.Write("error");
                }
                Session.Remove("InfoCode");
                Session.Remove("InfoDesc");
                Session.Remove("SerialReference");
                Session.Remove("SerialNumber");
                this.Response.End();
            }
        }
    }
}
